import 'package:flutter/material.dart';
import 'package:shopping_group/base/base_constant.dart';
import 'package:shopping_group/modle/good/ui/good_all_page.dart';
import 'package:shopping_group/modle/good/ui/good_paly_do_page.dart';
import 'package:shopping_group/modle/login/ui/user_find_password_page.dart';
import 'package:shopping_group/modle/login/ui/user_login_page.dart';
import 'package:shopping_group/modle/main/ui/bottom_menu_page.dart';
import 'package:shopping_group/modle/more/ui/more_st_page.dart';
import 'package:shopping_group/modle/person/ui/fugoujuan_view_page.dart';

class PageConstance {
  static const String WELCOME_PAGE = '/';
  static const String LOGIN_PAGE = '/login';
  static const String FIND_PASSWORD_PAGE = '/find_password';
  static const String USER_REGISTER_PAGE = '/user_register';
  static const String USER_SET_PAGE = '/user_set_view';
  static const String MAIN_PAGE = '/main';
  // static const String DETAILS_PAGE = '/delalis';
  static const String MORE_ST_PAGE = '/moreStPage';
  static const String ALL_ORDER_PAGE = '/all_order';
  static const String FUGOU_VIEW_PAGE = '/fugoujuan';
  static const String DFK_VIEW_PAGE = '/dfk';
  static const String XJJ_VIEW_PAGE = '/xjj';

  static Map<String, WidgetBuilder> getRoutes() {
    var route = {
      MAIN_PAGE: (BuildContext context) {
        return BottomMenuPage();
      },
      FIND_PASSWORD_PAGE: (BuildContext context) {
        return UserFindPassWordPage();
      },
      LOGIN_PAGE: (BuildContext context) {
        return UserLoginPage();
      },
      // DETAILS_PAGE: (BuildContext context) {
      //   return DetailsPage(
      //     id: BaseConstant.openShopId,
      //   );
      // },
      MORE_ST_PAGE: (BuildContext context) {
        return MoreStPage(
          id: BaseConstant.groupSpecId,
          title: BaseConstant.groupTitle,
        );
      },
      ALL_ORDER_PAGE: (BuildContext context) {
        return GoodAllPage();
      },
      FUGOU_VIEW_PAGE: (BuildContext context) {
        return FuGouViewPage();
      },
      DFK_VIEW_PAGE: (BuildContext context) {
        return GoodPalyToPage();
      },
    };

    return route;
  }
}
